<%@taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix = "fmt" uri = "http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix = "fn" uri = "http://java.sun.com/jsp/jstl/functions"%>

<c:forEach var = "message" items = "${messagesList}">
  <c:choose>
     <c:when test='${message.error}'>
       <table class = "errorMessage fade-FF0000" style="width: 100%;" cellpadding="5">
         <tr>
           <td width="60px" align="center"><img src="images/warning.gif" alt="x"></td>
           <td>${message.text}</td>
         </tr>
       </table>
     </c:when>
     
     <c:otherwise>
       <table class = "infMessage fade-FFFF00" style="width: 100%;" cellpadding="5">
         <tr>
           <td width="60px" align="center"><img src="images/info.gif" alt="v"></td>
           <td>${message.text}</td>
         </tr>
       </table>
     </c:otherwise>     
  </c:choose>
</c:forEach>